package com.yiqi.liebang.entity.bo;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.suozhang.framework.entity.bo.BaseEntity;
import com.yiqi.liebang.feature.setting.view.adapter.ExpandableItemAdapter;

import java.util.List;

public class HelpBo extends AbstractExpandableItem<HelpBo.HelpBean> implements BaseEntity, MultiItemEntity {

    /**
     * id : 1
     * classify : 猎帮介绍
     * help : [{"id":16,"helpquestions":"sdfsdf","helpanswers":"<p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入asfsdf asdfa<p>请输入描述内容<\/p>sadfsdfasdf<p>请输入描述内容<\/p>sdfsdfsd描述内容<\/p>safasf<p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p><p>请输入描述内容<\/p>dsafasfasfreaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<p>请输入描述内容<\/p>","helpclassfiyid":1},{"id":17,"helpquestions":"牛逼好啊","helpanswers":"撒旦发射点发","helpclassfiyid":1}]
     */

    private int id;
    private String classify;
    private List<HelpBean> help;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public List<HelpBean> getHelp() {
        return help;
    }

    public void setHelp(List<HelpBean> help) {
        this.help = help;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
         return ExpandableItemAdapter.TYPE_LEVEL_0;
    }

    public static class HelpBean  extends AbstractExpandableItem<HelpBo.HelpBean.ContentBean>  implements MultiItemEntity, BaseEntity {
        /**
         * id : 16
         * helpquestions : sdfsdf
         * helpanswers : <p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入asfsdf asdfa<p>请输入描述内容</p>sadfsdfasdf<p>请输入描述内容</p>sdfsdfsd描述内容</p>safasf<p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p>dsafasfasfreaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<p>请输入描述内容</p>
         * helpclassfiyid : 1
         */

        private int id;
        private String helpquestions;
        private String helpanswers;
        private int helpclassfiyid;
        private List<ContentBean> contentBeans;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getHelpquestions() {
            return helpquestions;
        }

        public void setHelpquestions(String helpquestions) {
            this.helpquestions = helpquestions;
        }

        public String getHelpanswers() {
            return helpanswers;
        }

        public void setHelpanswers(String helpanswers) {
            this.helpanswers = helpanswers;
        }

        public int getHelpclassfiyid() {
            return helpclassfiyid;
        }

        public void setHelpclassfiyid(int helpclassfiyid) {
            this.helpclassfiyid = helpclassfiyid;
        }

         @Override
        public int getItemType() {
            return ExpandableItemAdapter.TYPE_LEVEL_1;
        }

        @Override
        public int getLevel() {
            return 1;
        }

        public static class ContentBean implements MultiItemEntity, BaseEntity {
            /**
             * id : 16
             * helpquestions : sdfsdf
             * helpanswers : <p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入asfsdf asdfa<p>请输入描述内容</p>sadfsdfasdf<p>请输入描述内容</p>sdfsdfsd描述内容</p>safasf<p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p><p>请输入描述内容</p>dsafasfasfreaffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff<p>请输入描述内容</p>
             * helpclassfiyid : 1
             */


            private String content;

            public ContentBean() {
            }

            public ContentBean(String content) {
                this.content = content;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            @Override
            public int getItemType() {
                return ExpandableItemAdapter.TYPE_PERSON;
            }
        }
    }
}
